package service

import store "inspector/internal/dao"

type Service interface {
	OAuthService() OAuthSrv
	EventService() EventSrv
}

type service struct {
	store store.Factory
}

func NewService(store store.Factory) Service {
	return &service{
		store: store,
	}
}

func (s *service) OAuthService() OAuthSrv {
	return NewOAuthService(s.store)
}

func (s *service) EventService() EventSrv {
	return NewEventService(s.store)
}
